import { Injectable } from '@nestjs/common';
import { customAlphabet } from 'nanoid';

@Injectable()
export class IdService {
  private readonly nanoid = customAlphabet('0123456789', 15);
  generateId() {
    return '1' + this.nanoid();
  }
}
